#include "filter.h"
#include <QObject>

class QWidget;

class BlobFinder: public QObject, public Filter {
Q_OBJECT
public:
	BlobFinder();
	void processPoint(ImageState *state);

	QWidget *settings;

public slots:
	void changeNumBlobs(int num);
	void changeBlobSize(int size);
	void changeDisplaySetting(int state);

signals:
	void numBlobsChanged(int num);
	void blobSizeChanged(int size);
	void displaySettingChanged(int state);

private:
	void initSettings();

	int max_num_blobs;
	int min_blob_size;
	int display_center;
};
